<script setup lang="ts">
    const props = defineProps(['username','dog','changeUsername'])
    console.log(props)
    
</script>
<template>
    <h3>$attrs-孙组件</h3>
    <h4>来自于祖父组件的数据:{{username}}-{{ dog }}</h4>
    <button @click="changeUsername('孙子')">孙给祖父</button>
</template>
<style scoped>
   
</style>